package com.google.android.apps.mytracks;

import com.doverty.android.maps.mytracks.R;
import com.google.android.apps.mytracks.casos.CasosListActivity;
import com.google.android.apps.mytracks.clientes.ClientesListActivity;
import com.google.android.apps.mytracks.investigados.InvestigadosListActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class MainActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main_activity);
    
    ImageButton clientes = (ImageButton) findViewById(R.id.imageButtonClientes);
    clientes.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View v) {
        Intent intent = new Intent(getApplicationContext(), ClientesListActivity.class);
        startActivity(intent);
      }
    });
  
  ImageButton investigados = (ImageButton) findViewById(R.id.imageButtonInvestigados);
  investigados.setOnClickListener(new OnClickListener() {
    @Override
    public void onClick(View v) {
      Intent intent = new Intent(getApplicationContext(), InvestigadosListActivity.class);
      startActivity(intent);
    }
  });
  ImageButton seguimientos = (ImageButton) findViewById(R.id.imageButtonSeguimientos);
  seguimientos.setOnClickListener(new OnClickListener() {
    @Override
    public void onClick(View v) {
      Intent intent = new Intent(getApplicationContext(), TrackListActivity.class);
      startActivity(intent);
    }
  });
  ImageButton libro = (ImageButton) findViewById(R.id.imageButtonLibroDetective);
  libro.setOnClickListener(new OnClickListener() {
    @Override
    public void onClick(View v) {
      Intent intent = new Intent(getApplicationContext(), CasosListActivity.class);
      startActivity(intent);
    }
  });
}


}
